package br.com.teste;

import java.util.LinkedList;

public class CircularQueue implements Queue {

	private int capacity;
	java.util.Queue<PrintJob> queue;
	
	public CircularQueue(int capacity) {
		this.capacity = capacity;
		queue = new LinkedList<PrintJob>();
	}
	
	@Override
	public void addBack(PrintJob job) {
		
		queue.add(job);
	}

	@Override
	public PrintJob removeFront() {
		
		return queue.remove();
	}

	@Override
	public boolean isEmpty() {
		
		return queue.isEmpty();
	}

	@Override
	public int getNumberOfJobs() {
		
		return queue.size();
	}

	
}
